Skip to content

build: match HTTP(S) URL schemes case-insensitively in urlutil.IsURL - #7555

Open
adityagupta26 wants to merge 1 commit into
docker:masterfrom
adityagupta26:fix/build-uppercase-http-url
Open

adityagupta26 wants to merge 1 commit into
docker:masterfrom
adityagupta26:fix/build-uppercase-http-url

Conversation

@adityagupta26

Copy link
Copy Markdown

Description

Use strings.EqualFold in urlutil.IsURL (cli/command/image/build/internal/urlutil/urlutil.go) so uppercase and mixed-case HTTP:// / HTTPS:// schemes are recognized as remote build contexts instead of falling back to local file paths.

Testing

  • Added TestIsURLCaseInsensitive in cli/command/image/build/internal/urlutil/urlutil_test.go.

Fixes #7376

Signed-off-by: Aditya Gupta <59690681+adityagupta26@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

docker build treats uppercase HTTP(S) URLs as local paths

1 participant